/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo924;

/**
 *
 * @author Administrator
 */
import java.util.*;

public class Login {
     public static void main(String[] args) throws Exception {
         Scanner cin=new Scanner(System.in);
         String name=cin.next();
         String password=cin.next();
         String pass1="202cb962ac59075b964b07152d234b70";
         if(name.equals("zhangsan")&&pass1.equals(MD5.getMD5(password))){
             System.out.println("ok");
         }else{
             System.out.println("failure");
         }
     }
}
